qx.Class.define("ui.service.TemaService", {
			extend : qx.core.Object,
			properties : {
				temas : {
					nullable : true,
					event : "nuevosTemas"
				}
			},
			members : {
				save : function() {
					var req = new qx.io.request.Xhr("rpc/tema/guardar", "POST");
					var resp = null;
					req.send();
					req.addListener("success", function(e) {
								var req = e.getTarget();
								resp = req.getResponse();
							}, this);
					return resp;
				},
				list : function(list) {
					if (this.__store == null) {
						var url = "/rpc/tema/listar"
						var delegate = {
							configureRequest : function(request) {
								request.set({
											"method" : "POST",
											"requestData" : {
												"descripcion" : "",
												"nombre" : "",
												"uid" : ""
											}
										});
							}
						};
						this.__store = new qx.data.store.Json(url, delegate);
						this.__store.bind("model", this, "temas");

					} else {
						this.__store.reload();
					}
				},
				del : function(params) {
					var req = new qx.io.request.Xhr("rpc/tema/borrar", "POST");
					var resp = null;
					req.setRequestData(params);
					req.send();
					req.addListener("success", function(e) {
								var req = e.getTarget();
								resp = req.getResponse();
							}, this);
					return resp;

				}

			}
		});